const { DataTypes } = require('sequelize');
const sequelize = require('../configs/sequelize_config');

const BizProduct = sequelize.define("biz_product", {
    product_id: {
        type: DataTypes.BIGINT,
        primaryKey: true
    },
    product_code: {
        type: DataTypes.STRING(30),
        allowNull: false
    },
    domain_type: {
        type: DataTypes.INTEGER,
        defaultValue: 0
    }
}, {
    underscored: true,
    freezeTableName: true,
    tableName: 'biz_product'
});

module.exports = BizProduct;
